package com.zzx.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzx.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zzx.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 项目节点对象 tb_nodes
 *
 * @author Zzx
 * @date 2025-05-23
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TbNodes extends BaseEntity {

    private Long id;
    private Long projectsId;
    private String type;
    @TableField(value = "`from`")
    private Long from;
    @TableField(value = "`to`")
    private Long to;
    private String name;
    private String description;
    private String remark;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date finishDate;
    private Long deptId;
    private Long principalId;
}
